import {Card, Code, Modal, ModalBody, ModalContent, ModalHeader} from "@nextui-org/react";
import AuthPage from "@/app/components/auth/authPgae";
import React from "react";
import Share from "@/app/pages/share/Share";
import {BrowserRouter as Router} from 'react-router-dom';
import {CardBody} from "@nextui-org/card";
import PubSub from "pubsub-js"

/**
 * 无登录Navbar选项提示Modal
 * @param isOpenGuestNavbarClick
 * @param onOpenChangeGuestNavbarClick
 * @param title
 * @param body
 * @constructor
 */
export default function GuestNavbarComponents({
                                                  isOpenGuestNavbarClick,
                                                  onOpenChangeGuestNavbarClick,
                                                  title,
                                                  body
                                              }: any) {
    return (
        <>
            <Modal backdrop={"opaque"} isOpen={isOpenGuestNavbarClick} onOpenChange={onOpenChangeGuestNavbarClick}
                   placement={"top"}
                   size={"3xl"}>
                <ModalContent>
                    {onClose => (
                        <>
                            {/*头部*/}
                            <ModalHeader className={"flex flex-col gap-1 font-extrabold"}>{title}</ModalHeader>
                            {/*内容*/}
                            <ModalBody>
                                {body}
                            </ModalBody>
                        </>
                    )}
                </ModalContent>l
            </Modal></>
    )
}